-- GENERATED SPELL FOR [Sister Riven] --


function spell0_5930(pUnit, Event) --@Fire Shield II,n/a--
pUnit:FullCastSpellOnTarget(184,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5930', 1000, 1)
end

function spell1_5930(pUnit, Event) --@Flame Lash,n/a--
pUnit:FullCastSpellOnTarget(3356,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5930', 46000, 1)
end

function spell2_5930(pUnit, Event) --@Flame Spike,n/a--
pUnit:FullCastSpellOnTarget(6725,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5930', 12000, 1)
end

function Sorts_5930(pUnit, Event)
local choix_sorts_5930 = math.random(0, 2)
if choix_sorts_5930 == 0 then
pUnit:RegisterEvent('spell0_5930', 1, 1)
end
if choix_sorts_5930 == 1 then
pUnit:RegisterEvent('spell1_5930', 1, 1)
end
if choix_sorts_5930 == 2 then
pUnit:RegisterEvent('spell2_5930', 1, 1)
end
end

function mob5930_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5930', math.random(1500, 3000), 1)
end

function mob5930_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5930_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5930_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5930, 1, 'mob5930_Action')
RegisterUnitEvent(5930, 2, 'mob5930_Leave')
RegisterUnitEvent(5930, 3, 'mob5930_Kill')
RegisterUnitEvent(5930, 4, 'mob5930_Die')
